<?php
	$current_date	= date("Y-m-d", time());
?>

<script type="text/javascript">
$(document).ready(function(){
	// functions
	<?php require('library/js/validator/functions.js');?>
	
	// satuan
	<?php require('library/js/form/input.satuan.js');?>
	
	// VALIDATOR
	
	// validation config
	<?php require('library/js/validator/config.harga.js');?>	
	
	$('input#tanggal').datePicker();
});

</script>
<textarea style="display:none" id="template_satuan_other">
	<li><span>
		<label>Satuan :</label>
		<input type="text" name="satuan" id="satuan" value="" />
	</span></li>
</textarea>
<div class="title">Harga Material</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirm">
    <ul>
    	<li class="header"><span>Material</span></li>
        <li><span>
            <label>Tanggal :</label>
            <input type="text" id="tanggal" name="tanggal" value="<?=$current_date;?>" readonly="readonly" class="disabled"/>
        </span></li>
		<li><span>
            <label>Kode Material :</label>
            <input type="text" id="kode" name="kode" value=""/>
        </span></li>
        <li><span>
            <label>Nama Material :</label>
			<input type="text" id="nama" name="nama" value=""/>
        </span></li>
        <li><span>
            <label>Jenis :</label>
            <select id="jenis" name="jenis">
				<option value="pupuk">Pupuk</option>
				<option value="insektisida">Insektisida</option>
				<option value="pestisida">Pestisida</option>
				<option value="fungisida">Fungisida</option>
				<option value="herbisida">Herbisida</option>
				<option value="bahan_kimia_lain">Bahan Kimia Lain</option>
			</select>
        </span></li>
        <li><span>
            <label>Satuan :</label>
             <select id="satuan" name="satuan">
				<option value="liter">Liter</option>
				<option value="kg">Kilogram</option>
				<option value="other">Lainnya</option>
			</select>
        </span></li>
		<li><span>
            <label>Harga per Satuan :</label>
            <input type="text" id="harga" name="harga" value=""/>
        </span></li>		
    </ul>
	<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
		</span></li>
	</ul>
</form>